package org.platform.mo.db;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "tb_fd_xinan_event")
@Data
public class FdXinanEvent {
    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private String id;

    /**
     * 知识ID(与故障监测点知识表的知识ID对应)
     */
    @Column(name = "KnowledgeID")
    private Long knowledgeid;

    /**
     * 发生时间
     */
    @Column(name = "HappendTime")
    private Long happendtime;

    /**
     * 设备ID
     */
    @Column(name = "DeviceID")
    private String deviceid;

    /**
     * 设备属性Key
     */
    @Column(name = "DevAttr")
    private String devattr;

    /**
     * 设备属性值
     */
    @Column(name = "DevAttrVal")
    private String devattrval;

    /**
     * 是否确认
     * (0: 未确认；
     * 1: 确认。
     * 默认值：0
     * )
     */
    @Column(name = "IsConfirmed")
    private Integer isconfirmed;

    /**
     * 是否恢复
     * (0: 未恢复；
     * 1: 恢复。
     * 默认值：0
     * )
     */
    @Column(name = "IsRestored")
    private Integer isrestored;

    /**
     * 恢复时间
     */
    @Column(name = "RestoreTime")
    private Long restoretime;

    /**
     * 备注
     */
    @Column(name = "Note")
    private String note;
}